<?php
namespace  Mp\Service\Tree;

use Illuminate\Database\Eloquent\Model;
use Mp\Facades\Tree;

class Node extends Model{

	public $node;

	public  $fillable = [
		'id',
		'node_id',
		'parent_id',
		'title',
	];

	public $appends = ['uri'];

	public function getUriAttribute(){
		return url('/node/'.($this->attributes['id']??0));
	}


}